import VueRouter from 'vue-router'

import home from './components/tabber/HomeCode.vue'
import member from './components/tabber/MemberCode.vue'
import search from './components/tabber/SearchCode.vue'
import shop from './components/tabber/ShopcarCode.vue'
import homeChild from './components/nextChild/homeChild.vue'

var router = new VueRouter({
    routes:[
        {path:'/',redirect:'/home'},
        {path:'/home',component:home},
        {path:'/member',component:member},
        {path:'/search',component:search},
        {path:'/shop',component:shop},
        {path:'/home/homeChild',component:homeChild}
    ],
    linkActiveClass:'mui-active'
});

//向外暴露接口
export default router;